package cn.buk.api.shdl.dto;

/**
 * @author yfdai
 */
public class MyLocalTime {
  private int hour;
  private int minutes;

  public static MyLocalTime create(int hour, int minutes) {
    MyLocalTime myTime = new MyLocalTime();

    myTime.setHour(hour);
    myTime.setMinutes(minutes);

    return myTime;
  }

  @Override
  public String toString() {
    return String.format("%02d%02d", this.hour, this.minutes);
  }

  public int getHour() {
    return hour;
  }

  public void setHour(int hour) {
    this.hour = hour;
  }

  public int getMinutes() {
    return minutes;
  }

  public void setMinutes(int minutes) {
    this.minutes = minutes;
  }
}
